class Patient {
    String name
    String NII;     // National Individual (health) Identifier
    Date dateOfBirth
    ContactInfo contactInfo
    BillingInfo billingInfo
    HealthRecord PHR;    // Personal Health Record
  
    static hasMany = [ doctors:Doctor]

    static optionals = ["PHR"]
    static constraints = {
        NII(size: 1..40, blank:false, unique: true)
        name(blank:false)
        dateOfBirth(blank:false)
        contactInfo()
        billingInfo()
        PHR()
    }
    String toString() { "${name}-${NII}" }
}
